home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / cmds.fmt / rm.man < prev    next >
Encoding:
Text File  |  1989-02-24  |  1.7 KB  |  67 lines

  1.  
  2.  
  3.  
  4. RM                        User Commands                        RM
  5.  
  6.  
  7.  
  8. NNAAMMEE
  9.      rm, rmdir  - remove (unlink) files or directories
  10.  
  11. SSYYNNOOPPSSIISS
  12.      rrmm [ --ff ] [ --rr ] [ --ii ] [ -- ] file ...
  13.  
  14.      rrmmddiirr dir ...
  15.  
  16. DDEESSCCRRIIPPTTIIOONN
  17.      _R_m removes the entries for one or more files from a direc-
  18.      tory.  If an entry was the last link to the file, the file
  19.      is destroyed.  Removal of a file requires write permission
  20.      in its directory, but neither read nor write permission on
  21.      the file itself.
  22.  
  23.      If a file has no write permission and the standard input is
  24.      a terminal, its permissions are printed and a line is read
  25.      from the standard input.  If that line begins with `y' the
  26.      file is deleted, otherwise the file remains.  No questions
  27.      are asked and no errors are reported when the --ff (force)
  28.      option is given.
  29.  
  30.      If a designated file is a directory, an error comment is
  31.      printed unless the optional argument --rr has been used.  In
  32.      that case, _r_m recursively deletes the entire contents of the
  33.      specified directory, and the directory itself.
  34.  
  35.      If the --ii (interactive) option is in effect, _r_m asks whether
  36.      to delete each file, and, under --rr, whether to examine each
  37.      directory.
  38.  
  39.      The null option -- indicates that all the arguments following
  40.      it are to be treated as file names.  This allows the specif-
  41.      ication of file names starting with a minus.
  42.  
  43.      _R_m_d_i_r removes entries for the named directories, which must
  44.      be empty.
  45.  
  46. SSEEEE AALLSSOO
  47.      rm(1), unlink(2), rmdir(2)
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Sprite v1.0              April 29, 1985                         1
  64.  
  65.  
  66.  
  67.